$script:thisModuleDirectory = $PSScriptRoot                     # Path \AutoSPUpdater\Modules\AutoSPUpdater\Modules\AutoSPUpdaterHelper\
$script:modulesDirectory = $PSScriptRoot | Split-Path           # Path \AutoSPUpdater\Modules\AutoSPUpdater\Modules
$script:rootDirectory = $Script:modulesDirectory | Split-Path   # Path \AutoSPUpdater\Modules\AutoSPUpdater\

$paths = @('Functions')
foreach ($path in $paths) {
    "$(Split-Path -Path $MyInvocation.MyCommand.Path)\$path\*.ps1" | Resolve-Path | ForEach-Object {
        if ($_.ProviderPath -notlike '*_*_TEMPLATE*') {
            . $_.ProviderPath 
        }
    }
}